{extend name="layout:base" /}

{block name="main"}
<h2 class="title">这是Demo应用</h2>

<div class="layui-collapse">
    {foreach $articles as $article}
    <div class="layui-colla-item">
        <h2 class="layui-colla-title">{$article.title}</h2>
        <div class="layui-colla-content layui-show">{$article.content|raw}</div>
    </div>
    {/foreach}
</div>
{/block}

{block name="js"}
<script>
    layui.use(['element'], function () {
        var element = layui.element;
    });
</script>
{/block}

{block name="css"}
<style>
    .title{text-align: center;margin: 20px;}
</style>
{/block}

